package grape.attend.service.overtime.servicemapper;

import grape.attend.service.overtime.dto.OvertimeConfig;
import grape.attend.service.overtime.po.OvertimeLegal;
import grape.attend.service.overtime.po.OvertimeRest;
import grape.attend.service.overtime.po.OvertimeWork;
import grape.common.service.pojomapper.ServiceMapper;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

/**
 * Created by yangwei
 * Created at 2020/5/27 15:32
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface OvertimeConfigServiceMapper extends ServiceMapper {

    OvertimeConfig toOvertimeConfig(OvertimeWork overtimeWork);
    OvertimeConfig toOvertimeConfig(OvertimeRest overtimeRest);
    OvertimeConfig toOvertimeConfig(OvertimeLegal overtimeLegal);
}
